package mesweb.mesweb.service.impl.produce;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.dto.ProducePlan.DayReportDetailConditionDto;
import mesweb.mesweb.entity.produce.ProduceDayReport;
import mesweb.mesweb.mapper.produce.ProduceDayReportMapper;
import mesweb.mesweb.service.produce.IProduceDayReportService;
import mesweb.mesweb.vo.ProducePlan.DayReportDetailResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 日报工
 * @Author: jeecg-boot
 * @Date:   2021-08-17
 * @Version: V1.0
 */
@Service
public class ProduceDayReportServiceImpl extends ServiceImpl<ProduceDayReportMapper, ProduceDayReport> implements IProduceDayReportService {

    @Autowired
    ProduceDayReportMapper produceDayReportMapper;

    @Override
    public IPage<ProduceDayReport> getProduceDayReport(Page page, QueryWrapper queryWrapper) {
        return produceDayReportMapper.getProduceDayReport(page,queryWrapper);
    }

    @Override
    public List<ProduceDayReport> getProduceDayReport(QueryWrapper queryWrapper) {
        return produceDayReportMapper.getProduceDayReport(queryWrapper);
    }

    @Override
    public void saveDayReport(ProduceDayReport produceDayReport) {
         produceDayReportMapper.saveDayReport(produceDayReport);
    }

    @Override
    public List<DayReportDetailResultVo> statProduceProcess(DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceDayReportMapper.statProduceProcess(dayReportDetailConditionDto);
    }
}
